using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace LWClock
{
	public partial class Form1 : SkinableFormsLib.LWSkinableForm
	{
		public Form1()
		{
			InitializeComponent();
		}


		private Random r = new Random(DateTime.Now.Millisecond);

		static int _timerIteration;
		private void timer2_Tick(object sender, EventArgs e)
		{
			if (_timerIteration % 5 == 0)
			{
				lwProgressBarCustom1.Value = DateTime.Now.Millisecond / 10;
			}
			if (_timerIteration == 0)
			{
				lwDistortLabel1.Text = DateTime.Now.ToLongTimeString();
				lwDistortLabel2.Text = DateTime.Now.ToLongDateString();
			}
			
			_timerIteration++;
			_timerIteration %= 10;
		}

		private void Form1_Load(object sender, EventArgs e)
		{
			timer2_Tick(null, null);
		}  

	}
}